#ifndef CMD_H
#define CMD_H
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include "EPD_2in9.h"
#include "DEV_Config.h"
#include "GUI_Paint.h"


typedef struct CpuInfo {
   uint8_t temp;
	 uint8_t use;
}CpuInfo;

typedef struct MenInfo {
	 uint16_t use;
	 uint16_t total;
	 uint16_t use_percent;
}MemInfo;

typedef struct Storage{
   uint16_t ssd_use;
	 uint16_t ssd_total;
	 uint16_t ssd_percent;
	 uint16_t disk_use;
	 uint16_t disk_total;
	 uint16_t disk_percent;
}Storage;

void InitDisplayMsg(UBYTE *BlackImage);
void ClearDisplayMsg(UBYTE *BlackImage);
void UpdateIp(UBYTE *BlackImage,char * Ipaddr,uint8_t addr_len);
void UpdateCpuInfo(UBYTE *BlackImage,CpuInfo * cpuinfo);
void UpdateMemInfo(UBYTE *BlackImage,MemInfo * meminfo);
void UpdateStorage(UBYTE *BlackImage,Storage * storage);
void UpdateAllmsg(UBYTE * BlackImage, CpuInfo *cpuinfo, MemInfo* meminfo, Storage *storage);
#endif

